﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using System.ComponentModel.DataAnnotations;
using Bridge.Shared.Enums.IdentityService;

namespace Bridge.System.Domain
{
    [Comment("外部系统对接接口日志")]
    [Table("t_sys_InterfaceLog")]
    public class InterfaceLog : AuditedAggregateRoot<Guid>, ISoftDelete, IMultiTenant
    {
        public InterfaceLog() { }
        public InterfaceLog(Guid Id)
        {
            this.Id = Id;
        }

        [Comment("外部系统名称")]
        public ExtSystemEnum ExtSystemName { get; set; }
        [MaxLength(100)]
        [Comment("接口名称")]
        public string InterfaceName { get; set; }
        [Comment("内容")]
        public string Context { get; set; }
        [MaxLength(50)]
        [Comment("操作用户")]
        public string OperUser { get; set; }

        [Comment("操作日期")]
        public string OperDate { get; set; }
       
        [Comment("是否删除")]
        public bool IsDeleted { get; set; } = false;
        [Comment("租户Id")]
        public Guid? TenantId { get; set; }
    }
}
